import request from "@/utils/request";

import store from "@/store"

// 第一遍
export const fasong = mode => {
    return request({
        url: `/v1_0/sms/codes/${mode}`,
        method: "GET"
    })
}

// 登录接口
export const denglu = obj => {
    return request({
        url: "/v1_0/authorizations",
        method: "POST",
        data: obj
    })
}

// 获取个人用户信息
// export const usinfo = (token) => {
//     return request({
//         method: "GET",
//         url: "/v1_0/user",
//         headers: {
//             Authorization: "Bearer " + token
//         }
//     })
// }

export const usinfo = () => {
    return request({
        method: "GET",
        url: "/v1_0/user",
    })
}